R/Dashboard_Menu/PredictTab/Front End/PredictTab.R

Defines functions addPredictTabContent addPredictorOptions

# source("UI_widgets.R")
addPredictorOptions <- function(id) {
  selectInput(
    id,
    "Algorithm",
    choices = c("ARIMA", "Linear Regression"),
    multiple = FALSE
  )
}
addPredictTabContent <- function(id) {
  ns <- NS(id)
  tabItem(
    tabName = "Prediction",
    fluidRow(
      box(
        width = 3,
        addPredictorOptions(ns("algo")),
        uiOutput(ns("y")),
        uiOutput(ns("x"))
      ),
      box(
        width = 9,
        DT::dataTableOutput(ns("ForecastTable"))
      )
    )
  )
}
dwarak98/seer documentation built on April 4, 2021, 8:22 a.m.